<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:include="inc/examHeader::header">
</head>
	<body>
		<!--返回-->
		<div class="back" onclick="location='/index'"><img src="../images/back.png" /></div>
		<div th:include="header :: header"></div>
		<div class="header-title">
			<span>我的成绩</span> 
		</div>
		<div class="spare-a">
			<div class="questions-ar">
				<div class="spare-ara">
					<div class="spare-ara-a clearfix">
						<div class="spare-ara-al">
							<div class="spare-ara-all"><input type="text" placeholder="请输入试卷名称" id="search"
								th:value="${params}"/></div>
							<div class="spare-ara-alr" onClick="js_method()"></div>
						</div>
					</div>
					<div class="srcoll-documentation" id="srcoll-documentation" shiro:hasPermission="sys:mygrades:view">
					<div class="documentation paper">
						<ul class="lists" id="lists">
							<!-- <a href="#">
							<li th:each="collect,iterStat : ${results}">
								<div class="paper-a">试卷名称：<a th:text="${collect.name}"></a></div>
								<div class="paper-b">总分:<a th:text="${collect.totalScore}"></a><span>成绩：<a th:text="${collect.score}"></a></span></div>
								<div class="paper-c">考试日期：<a th:text="${collect.createDate}"></a></div>
							</li>
							</a> -->
						</ul>
					</div>
					</div>
				</div>
			</div>
		</div>
		<script th:inline="javascript">  
/*<![CDATA[*/
           $(function() {	
	 		loadDataPage("/examReport/paperM/my-grade", "srcoll-documentation",
					"lists", 12, "search"); 
		});
		//构建数据列表
 		function dataKk(data, me) {
			var result = '';
			var arrLen = data.length;
			if (arrLen > 0) {
				for (var i = 0; i < arrLen; i++) {
					result += '<a href="#">' + '<li>'
							+ '<div class="paper-a">试卷名称：' + data[i].name+ '</div>'
							+ '<div class="paper-b">总分：' + data[i].totalScore + '<span>成绩：' + data[i].score+ '</span>'+ '</div>'
							+ '<div class="paper-c">考试日期：' + data[i].createDate+ '</div>'
							+ '<div class="documentation-check"></div>'
							+ '</li>' + '</a>'
				}
			} else {
				me.lock();
				me.noData();
			}
			return result; 
		} 
		 
 		function js_method() {
 			$(".dropload-down").remove();
 			$('#lists').html("");
 			loadDataPage("/examReport/paperM/my-grade", "srcoll-documentation", "lists", 12,"search");	
 		}
 
           /*]]>*/  
</script>
	</body>	
</html>
